let path = require('path');
let nodeExternals = require('webpack-node-externals');
let baseConfig = require("./base.config");
let {merge} = require('webpack-merge');


module.exports = merge(baseConfig,{
    target:'node',
    entry: './src/server/index.js',
    output: {
        filename: 'server_bundle.js',
        path: path.resolve(__dirname, '../build/server')
    },
    externals : [nodeExternals()], // 排除node_modules 中的包
})